.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;
.source "ExpandEvent.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;
.implements Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent$1;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent",
        "<",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;",
        ">;",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;",
        "Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;"
    }
.end annotation


# static fields
.field static final EVENT_ID:I = 0x3

.field static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field static final STATE:Ljava/lang/String; = "state"

.field static final TAG:Ljava/lang/String;


# instance fields
.field private mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

.field private mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

.field private mUrl:Ljava/lang/String;

.field private mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 52
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 57
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->TAG:Ljava/lang/String;

    return-void
.end method

.method protected constructor <init>()V
    .locals 1

    .prologue
    .line 93
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;-><init>(Ljava/lang/Class;)V

    .line 94
    return-void
.end method

.method private handleExpandResizeStates(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;Landroid/content/Context;)V
    .locals 5
    .parameter "properties"
    .parameter "context"

    .prologue
    .line 148
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->getState()Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    move-result-object v2

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    if-ne v2, v3, :cond_0

    .line 180
    :goto_0
    return-void

    .line 151
    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getOpenedOverlay()Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;

    move-result-object v1

    .line 152
    .local v1, lastOverlay:Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer<*>;"
    if-eqz v1, :cond_1

    .line 153
    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;->hideOverlayed()V

    .line 154
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setOpenedOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    .line 156
    :cond_1
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mUrl:Ljava/lang/String;

    if-nez v2, :cond_3

    .line 157
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-direct {v0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V

    .line 158
    .local v0, expandedView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<*>;"
    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->setExpandedProperties(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;)V

    .line 159
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->showOverlayed()V

    .line 160
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v2, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setOpenedOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    .line 175
    :goto_1
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const-string v3, "state"

    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->name()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->fireSimpleChangeEvent(Ljava/lang/String;Ljava/lang/Object;)V

    .line 176
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mRichMediaListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    if-eqz v2, :cond_2

    .line 177
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mRichMediaListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    invoke-interface {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->onExpand()Z

    .line 179
    :cond_2
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setState(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;)V

    goto :goto_0

    .line 163
    .end local v0           #expandedView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<*>;"
    :cond_3
    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-direct {v2, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    .line 164
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-virtual {v2, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->setContentLoaderListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;)V

    .line 165
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mUrl:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->loadUrl(Ljava/lang/String;)V

    .line 166
    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-direct {v2, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 167
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->showLoadingBar()Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;

    .line 168
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;

    const/4 v3, 0x4

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setAfterLoadingStateMask(I)V

    .line 169
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-direct {v0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V

    .line 170
    .restart local v0       #expandedView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<*>;"
    invoke-virtual {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->setOverlayListener(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;)V

    .line 171
    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->setExpandedProperties(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;)V

    .line 172
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->showOverlayed()V

    .line 173
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v2, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setOpenedOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    goto :goto_1
.end method


# virtual methods
.method protected cleanUp()V
    .locals 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .prologue
    const/4 v2, 0x0

    .line 192
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AbstractParseParamsEvent;->cleanUp()V

    .line 193
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    if-eqz v0, :cond_1

    .line 194
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xb

    if-lt v0, v1, :cond_0

    .line 195
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->onPause()V

    .line 197
    :cond_0
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 199
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    if-eqz v0, :cond_2

    .line 200
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->cancelLoading()V

    .line 201
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->destroy()V

    .line 202
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    .line 204
    :cond_2
    return-void
.end method

.method public onCloseOverlay()V
    .locals 4

    .prologue
    .line 115
    :try_start_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setState(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;)V

    .line 116
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const-string v2, "state"

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->name()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->fireSimpleChangeEvent(Ljava/lang/String;Ljava/lang/Object;)V

    .line 117
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->destroy()V

    .line 118
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 119
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    if-eqz v1, :cond_0

    .line 120
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->cancelLoading()V

    .line 121
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->destroy()V

    .line 123
    :cond_0
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 128
    :goto_0
    return-void

    .line 125
    :catch_0
    move-exception v0

    .line 126
    .local v0, exception:Ljava/lang/Exception;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->TAG:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public onFailedToLoad()V
    .locals 3

    .prologue
    .line 104
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const-string v1, "expand"

    const-string v2, "can not open provided url as MRAID script. Collapsing."

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->fireErrorEvent(Ljava/lang/String;Ljava/lang/String;)V

    .line 105
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->close()V

    .line 106
    return-void
.end method

.method public onLoad(Ljava/lang/String;)V
    .locals 6
    .parameter "html"

    .prologue
    const/4 v1, 0x0

    .line 98
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mSecondPartView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const-string v4, "utf8"

    move-object v2, p1

    move-object v3, v1

    move-object v5, v1

    invoke-virtual/range {v0 .. v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 99
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mLoaderView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    .line 100
    return-void
.end method

.method public onShowOverlay()V
    .locals 0

    .prologue
    .line 110
    return-void
.end method

.method public parsed(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;)V
    .locals 2
    .parameter "properties"

    .prologue
    .line 132
    if-eqz p1, :cond_0

    .line 133
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent$1;->$SwitchMap$com$burstly$lib$component$networkcomponent$burstly$html$mraid$MraidBridgeState:[I

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->getState()Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    move-result-object v1

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 139
    :cond_0
    :goto_0
    return-void

    .line 136
    :pswitch_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, p1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->handleExpandResizeStates(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;Landroid/content/Context;)V

    goto :goto_0

    .line 133
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public bridge synthetic parsed(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 46
    check-cast p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->parsed(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;)V

    return-void
.end method

.method protected setUpEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;[Ljava/lang/Object;)Z
    .locals 3
    .parameter "mraidView"
    .parameter "args"

    .prologue
    const/4 v1, 0x1

    .line 184
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 185
    aget-object v0, p2, v1

    check-cast v0, Ljava/lang/String;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandEvent;->mUrl:Ljava/lang/String;

    .line 186
    invoke-virtual {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->isInterstitial()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->getState()Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    move-result-object v0

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    if-eq v0, v2, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
